#ifndef	_LOAD_IMAGE_TASK_H_
#define _LOAD_IMAGE_TASK_H_
#include "LoadTask.h"
#include "video/ISprite.h"
#include <string>
using namespace std;

namespace easy2d {

	class LoadImageTask : public LoadTask
	{
	public:
		LoadImageTask(const char* filename, ITexture* texture, ISprite* sprite = NULL);
		virtual ~LoadImageTask(void);
		virtual bool onProcessInThread(void);
		virtual bool onProcessInLogic(void);
	private:
		ISprite *mSprite;
		ITexture *mTexture;
		Image mImage;
		string mFileName;
	};


}	// namespace


#endif